package com.sure.classsystemserver.security.home.dao;
import com.sure.classsystemserver.security.home.Module;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface HomeDao {
//    @Select("        select  p.m_id p_id,\n" +
//            "                p.m_name p_name,\n" +
//            "                m.m_id m_id,\n" +
//            "                m.m_name m_name,\n" +
//            "                m.m_web\n" +
//            "\n" +
//            "        from tmodular m\n" +
//            "                join tmodular p         on m.TMo_m_id = p.m_id\n" +
//            "                join trole_modular rm   on rm.m_id    = m.m_id\n" +
//            "                join trole r            on rm.r_id    = r.r_id\n" +
//            "                join tuser u            on r.r_id     = u.r_id\n" +
//            "\n" +
//            "        where m.m_web is not null\n" +
//            "                and u_id=#{userId}\n" +
//            "\n" +
//            "        order by p.m_id,m.m_id")
    List<Module> findModuleByUser(String userId);
}
